package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.AccountGroupConfig;
import org.apache.ibatis.annotations.Param;

import java.util.*;

public interface AccountGroupConfigMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AccountGroupConfig record);

    int insertSelective(AccountGroupConfig record);

    AccountGroupConfig selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AccountGroupConfig record);

    int updateByPrimaryKey(AccountGroupConfig record);

    List<HashMap<String,Object>> getGroupOptions();

    List<AccountGroupConfig> listAccountGroupInfoData(@Param(value = "levelId") Integer levelId,
                                                      @Param(value = "startTime") String startTime,
                                                      @Param(value = "endTime") String endTime,
                                                      @Param(value = "offset") Integer offset,
                                                      @Param(value = "pageSize") Integer pageSize);

    int getCount(@Param(value = "levelId") Integer levelId,
                 @Param(value = "startTime") String startTime,
                 @Param(value = "endTime") String endTime);
}